package com.bifrost.repository;

import com.bifrost.entity.*;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author rangf
 * @date 2018/5/31
 */
public interface PromotionConstraintRepository extends JpaRepository<PromotionConstraint, Long> {
    PromotionConstraint findByCustomerAndPromotionAndProductId(Customer customer, Promotion promotion, Long productId);
}
